package com.ivan.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ivan.model.entity.hosp.Hospital;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/*
 * @Author      Ivan
 * @Date        2023/4/4 17:30
 * @Description
 */
public interface HospitalMapper extends BaseMapper<Hospital> {
    //根据hoscode查询Hospital
    @Select("select * from hospital where hoscode = #{hoscode} and is_deleted = 0")
    Hospital selectHospitalNameByCode(@Param("hoscode") String hoscode);
}
